package com.gking.centerSystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色表
 */
@Data
@TableName("sy_roles")
public class Roles implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //系统唯一编码
    @TableField(value = "systemCode")
    private String systemCode;

    //角色名字段
    @TableField(value = "name")
    private String name;

    //角色描述
    @TableField(value = "description")
    private String description;

    //角色名称
    @TableField(value = "realName")
    private String realName;

    //角色分类id
    @TableField(value = "sortId")
    private String sortId;

    //角色是否启用
    @TableField(value = "enable")
    private Integer enable;

    //角色是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //角色是否为用户默认角色 0 默认，1 非默认
    @TableField(value = "isDefault")
    private Integer isDefault;

    //角色创建者id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //角色创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //角色更新者id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //角色更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //角色删除者id
    @TableField(value = "deleteUserId")
    private String deleteUserId;

    //角色删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;


}
